package com.tianya.service;
import com.tianya.dao.UserDao;
import com.tianya.model.User;

public class UserService  {
	private UserDao userdao;

	public UserDao getUserdao() {
		return userdao;
	}

	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}
	/**
	 * ���ע���û�
	 * @param user
	 */
	public String adduser(User user){
		String a="添成失败";
		try {
			this.userdao.adduser(user);
			a="添加成功";
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		return a;
	}
	

		private String description;

		public String getDescription() {
		   return "This description from String. [" + description + "]";
		}

		public void setDescription(String description) {
		   this.description = description;
		}
		

}
